#pragma once
#include "Context_model.h"

class Model
{
	int context_length;
	Context_model *first;

public:
	Model (int length);
	Link * Encode_sym (int sym, int *context);
	Link * Decode (int *context, int &c);
	void Update (int sym, int *context, Link *match);
	~Model();
};